﻿@{
    ViewBag.Title = "Register";
    object frmHtmlAttrs = new
    {
        @class = "form-horizontal"
    };
}
@section Header{
    @CDNClient.CreateScript("~/Scripts/jquery.validate.unobtrusive.min.js")
    @CDNClient.CreateScript("~/Scripts/jquery.validate.min.js")
    @CDNClient.CreateScript("~/Scripts/jquery-validation/localization/messages_cn.js")
}
@model Shop.Web.Models.Passport.RegisterModel
@using (Html.BeginForm("Register", "Passport", FormMethod.Post, frmHtmlAttrs))
{
    <div class="control-group">
        <label class="control-label">
            用户名</label>
        <div class="controls">
            @Html.TextBoxFor(p => p.NickName, new
            {
                placeholder = "NickName"
            })
            @Html.ValidationMessageFor(p => p.NickName)
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            邮箱</label>
        <div class="controls">
            @Html.TextBoxFor(p => p.Email, new
            {
                placeholder = "Email"
            })
            @Html.ValidationMessageFor(p => p.Email)
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            设置密码</label>
        <div class="controls">
            @Html.TextBoxFor(p => p.Password, new
            {
                placeholder = "Password"
            })
            @Html.ValidationMessageFor(p => p.Password)
        </div>
    </div>
    <div class="control-group">
        <label class="control-label">
            确认密码</label>
        <div class="controls">
            @Html.TextBoxFor(p => p.ConfirmPassword, new
            {
                placeholder = "Confirm Password"
            })
            @Html.ValidationMessageFor(p => p.ConfirmPassword)
        </div>
    </div>
    <div class="control-group">
        <div class="controls">
            <button type="submit" class="btn">
                注册
            </button>
        </div>
    </div>
}
